package com.zheng.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zheng
 * @since 2020-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("czsb_log")
@ApiModel(value="CzsbLog对象", description="")
public class CzsbLog extends Model<CzsbLog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务实例id")
    @TableId("ID")
    private String id;

    @ApiModelProperty(value = "发送报文")
    @TableField("SENDMSG")
    private String sendmsg;

    @ApiModelProperty(value = "接收到的报文")
    @TableField("RECEIVEMSG")
    private String receivemsg;

    @TableField("CREATETIME")
    private LocalDateTime createtime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
